import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from "axios";
//设置反向代理，前端默认发送到 http://localhost:9001/api
axios.default.baseURI= 'http://localhost:9001/api/'

//全局注册，之后可在其他组件通过 this.axios 发送数据
Vue.prototype.$axios=axios
Vue.config.productionTip = false

new Vue({
  router,
 "render": h => h(App)
}).$mount("#app")
